<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use DB;

class TheController extends Controller
{
	public function index(Request $request)
	{
		
      $ob =DB::table('order')->get();
        
         return view('/admin/order/index',['ob'=>$ob]);
    } 

    public function orderindex($id)
    {
    	// dd($id);
    	
		$ob =DB::table('details')->where('gid',$id)->get();
		// dd($ob);
    return view('/admin/order/View',['ob'=>$ob]);	
		
    }

}
 